package com.quanyan.club.constants;

/**
 * Created by zhuo.shi on 2016/6/1.
 */
public class ClubConstants {

    public static final float CLUB_ACTIVITY_STATUS_SIGN = 0.0f;    //未开始
    public static final float CLUB_ACTIVITY_STATUS_START = 1.0f;    //进行中
    public static final float CLUB_ACTIVITY_STATUS_PAUSE = 1.5f;    //暂停中
    public static final float CLUB_ACTIVITY_STATUS_END = 2.0f;    //已结束

    //申请加入俱乐部类型
    public static final byte APPLY_TYPE_ASK = 0;    //申请
    public static final byte APPLY_TYPE_ADMIN_INVITE = 1; //管理员邀请
    public static final byte APPLY_TYPE_JOIN = 2;   //俱乐部不需要审核，直接加入
    public static final byte APPLY_TYPE_MEMBER_INVITE = 3;  //俱乐部普通成员邀请

    //加入俱乐部是否需要审核
    public static final byte AUDITING_YES = 0;      //需要审核
    public static final byte AUDITING_NO = 1;       //不需要审核

    //编辑俱乐部成员的类型
    public static final int ROLE_EDIT = 1;          //职位权限变更
    public static final int MEMBER_LABEL_EDIT = 2;  //俱乐部成员标签变更
    public static final int TEAM_LABL_EDIT = 3;     //俱乐部代表队成员标签变更

    public static final int ONLINE_RECHARGE = 1;    //线上充值
    public static final int OFFLINE_RECHARGE = 2;   //线下充值

    //俱乐部账户收支类型
    public static final int RECHARGE = 0;   //充值
    public static final int CONSUME = 1;    //支出
    public static final int REFUND = 2;     //退款

    //是否删除
    public static final byte IS_DELETE_TRUE = 1;
    public static final byte IS_DELETE_FALSE = 0;

    //是否推荐
    public static final byte IS_RECOMMEND_TRUE = 1;
    public static final byte IS_RECOMMEND_FALSE = 0;

    //俱乐部提现方式
    public static final byte WITHDRAW_BY_ALIPAY = 1;    //支付宝
    public static final byte WITHDRAW_BY_WEIXIN = 2;    //微信

    //俱乐部提现次数在redis中的key 后缀， key的格式：club:clubId:withdrawals
    public static final String WITHDRAW_REDIS_KEY = ":withdrawals";
    public static final String WITHDRAW_REDIS_LIMIT = ":withdrawals:limit";
    public static final String WITHDRAW_REDIS_AUTH = ":withdrawals:auth";       //实名认证俱乐部是否有过提现
    public static final String GIVEOUT_EGG_REDIS_LIMIT = "giveoutEgg:limit";
    public static final String CREATE_CLUB_LIMIT = "createclub:limit";

    //俱乐部提现申请状态：1：处理中 2: 第三方处理中 3：提现成功 4：提现失败
    public static final byte WITHDRAWALS_STATUS_DEAL_BY_SYS = 1;
    public static final byte WITHDRAWALS_STATUS_DEAL_BY_THIRDPARTY = 2;
    public static final byte WITHDRAWALS_STATUS_SUCCESS = 3;
    public static final byte WITHDRAWALS_STATUS_FAIL = 4;

    //俱乐部提现审核状态： 0：待审核 1:审核失败 2:审核通过
    public static final byte AUDIT_STATUS_DEALING = 0;
    public static final byte AUDIT_STATUS_FAIL = 1;
    public static final byte AUDIT_STATUS_SUCCESS = 2;

    //redis中的key后缀 存储用户收藏的活动， key的格式：redis:activity:uid:userCollectRedisKey
    public static final String USER_ACTIVITY_COLLECT_REDIS_KEY = ":userActivityCollectRedisKey";

    //redis中的key后缀 存储活动支付订单系统返回信息
    public static final String USER_ACTIVITY_ORDER_PAY_RES_INFO= ":userActivityOrderPayResInfo";

    public static final String CLUB_GROUP_ORDER = "CLUB_GROUP_ORDER"; //Mq队列俱乐部订单GroupId.
    public static final String CLUB_INSTANCE_ORDER = "CLUB_INSTANCE_ORDER"; //Mq队列俱乐部订单实例.
    public static final String CLUB_TOPIC_ORDER = "CLUB_TOPIC_ORDER"; //Mq队列俱乐部订单topicId.

    //俱乐部活动订单支付方式
    public static final int PAY_TYPE_ALIPAY = 1;
    public static final int PAY_TYPE_WEICHAT = 2;
    public static final int PAY_TYPE_WAY_WEICHATH5 = 3;
    public static final int PAY_TYPE_UNIONPAY = 4;
    public static final int PAY_TYPE_APPLYPAY = 5;
    public static final int PAY_TYPE_FOR_FREE = 6;
    public static final int PAY_TYPE_FOR_ALIWEB = 14;

    public static final String SOURCE_BUSSINESS_ID_ONLINE_RECHARGE = "A";

    //俱乐部定时任务，任务taskid
    public static final String CLUB_JOB_ID_ACTIVITY_ORDER_TIMEOUT = "CLUB_JOB_ID_ACTIVITY_ORDER_TIMEOUT";           //处理所有未支付的俱乐部活动订单
    public static final String CLUB_JOB_ID_ACTIVITY_START_NOTIFY = "CLUB_JOB_ID_ACTIVITY_START_NOTIFY";           //俱乐部活动开始前xx分钟通知已报名用户，发送通知任务
    public static final String CLUB_JOB_ID_ACTIVITY_ABLE_STAR_CHECK = "CLUB_JOB_ID_ACTIVITY_ABLE_STAR_CHECK";     //俱乐部活动开始时间到，检查此活动是否可以开启任务
    public static final String CLUB_JOB_ID_CLUB_INTEGRAL_STATS = "CLUB_JOB_ID_CLUB_INTEGRAL_STATS";
    public static final String CLUB_JOB_ID_ACTIVITY_STATUS_UPDATE = "CLUB_JOB_ID_ACTIVITY_STATUS_UPDATE";     //扫描俱乐部活动状态并更新
    public static final String CLUB_JOB_ID_ACTIVITY_END_NOTIFY = "CLUB_JOB_ID_ACTIVITY_END_NOTIFY";              //俱乐部活动结束时通知已报名用户，推送通知
    public static final String CLUB_JOB_ID_ACTIVITY_WEEK_RANGE_CREATE = "CLUB_JOB_ID_ACTIVITY_WEEK_RANGE_CREATE";
    public static final String CLUB_JOB_ID_ACTIVITY_CYCLE_RANGE_CREATE = "CLUB_JOB_ID_ACTIVITY_CYCLE_RANGE_CREATE";     //俱乐部活动结束时通知已报名用户，推送通知

    public static final String CLUB_JOB_ID_ACTIVITY_AA_SETTLE_NOTIFY = "CLUB_JOB_ID_ACTIVITY_AA_SETTLE_NOTIFY";
    public static final String CLUB_JOB_ID_ACTIVITY_SETTLE = "CLUB_JOB_ID_ACTIVITY_SETTLE";             //俱乐部活动六小时后自动结算
    public static final String CLUB_JOB_IM_GROUPIDMISSING_CHECK = "CLUB_JOB_IM_GROUPIDMISSING_CHECK";       //俱乐部imgroupid丢失检查
    public static final String CLUB_JOB_TASK_NOTIFY = "CLUB_JOB_TASK_NOTIFY";
    public static final String CLUB_JOB_ID_CLUB_INTEGRAL = "CLUB_JOB_ID_CLUB_INTEGRAL";//俱乐部积分第一次统计 --create by xian-guo
    public static final String CLUB_JOB_ID_ACTIVITY_AUTO_APPRAISE = "CLUB_JOB_ID_ACTIVITY_AUTO_APPRAISE";
    public static final String CLUB_JOB_ID_ACTIVITY_AUTO_SETTLE = "CLUB_JOB_ID_ACTIVITY_AUTO_SETTLE";
    public static final String CLUB_JOB_ID_PULL_SUMMARY = "CLUB_JOB_ID_PULL_SUMMARY";

    public static final String CLUB_JOB_SUMMARY_FINANCE = "CLUB_JOB_SUMMARY_FINANCE";       //俱乐部活动、赛事、提现资金统计

    public static final String CLUB_JOB_SUMMARY_FINANCE_DAY = "CLUB_JOB_SUMMARY_FINANCE_DAY";

    public static final String CLUB_EGG_PULL_USER_CODE = "CLUB_EGG_PULL_USER_CODE";
    public static final String CLUB_EGG_WEEK_TASK_CODE = "CLUB_EGG_WEEK_TASK_CODE";
    public static final String CLUB_LOTTERY_ADDEGG_CODE = "CLUB_LOTTERY_ADDEGG_CODE";       //俱乐部抽奖，中鸟蛋
    public static final String CLUB_LOTTERY_SUBEGG_CODE = "CLUB_LOTTERY_SUBEGG_CODE";       //俱乐部抽奖，消费鸟蛋
    public static final String CLUB_YEAR_ACTIVITY_CODE = "CLUB_YEAR_ACTIVITY_CODE";//2017全名充能活动

    public static final String CLUB_JOB_ID_YEAR_ACTIVITY_JOB="CLUB_JOB_ID_YEAR_ACTIVITY_JOB";   //2017春节活动

    public static final Byte PULL_STATUS_CLUB = 1;    //创建俱乐部状态
    public static final Byte PULL_STATUS_ACTIVITY = 2;    //创建活动状态
    public static final Byte PULL_STATUS_SUCCESS = 3;    //拉新成功状态

    public static final Integer PULL_NEW_CLUB_EGGS_SETTING = 10;    //俱乐部拉新奖励鸟蛋
    public static final Integer PULL_OLD_CLUB_EGGS_SETTING = 11;    //拉新奖励老俱乐部鸟蛋
    public static final Integer PULL_COUNT_SETTING = 12;    //拉新报名金额人数抽奖次数
    public static final Integer PULL_WITHDRAW_SETTING = 13;    //最小提现金额和一天最大提现次数
    public static final Integer PULL_GAINS_AMOUNT_SETTING = 14;    //最大提现金额和最大活动奖励次数
    public static final Integer GATHER_CLUB_DETAIL = 15;    //聚集地俱乐部默认介绍

    public static final Integer PULL_CHANNEL_CLUB_EGG_TYPE = 1;    //渠道新俱乐部奖励
    public static final Integer PULLL_OLD_CLUB_EGG_TYPE = 2;    //APP老俱乐部
    public static final Integer PULLL_NEW_CLUB_EGG_TYPE = 3;    //APP新俱乐部

    public static final String RULE_SETTING_PULL_GRADE = "grade";
    public static final String RULE_SETTING_PULL_POINT = "point";
    public static final String RULE_SETTING_PULL_RATE = "rate";
}
